2

1、安装Composer

$ curl -sS https://getcomposer.org/installer | php
$ mv composer.phar /usr/local/bin/composer

2、安装Laravel

composer create-project laravel/laravel your-project-name

3、为 app/storage 目录下的文件设置写权限

4、配置 nginx

location /laravel/public/ {
    try_files $uri $uri/ /laravel/public/index.php?$args;
}

风逐蓝天
2.5k 声望89 粉丝